<?php
class JobAttentionThema extends AppModel {
	var $name = 'JobAttentionThema';
	var $useTable = 'job_attention_thema_inner';
	var $belongsTo = array('SysParams' =>  
                            array('className'  => 'SysParams', 
                                  'conditions' => "\"SysParams\".deleted is null AND \"SysParams\".kbn='tema_id'",  
                                  'order'      => '',  
                                  'foreignKey' => 'tema_id'  
                            )       
                      );
                      
    function delByJobid($jobId){
    	$this->execute("update job_attention_thema_inner set deleted=now() where job_id=$jobId;");
    }                  
}
?>
